<div id="loadingPicBlock">
    <div class="wrapper">
        <toptitle toptitletext='活动参与记录'></toptitle>
        <div class="m_buylistDet">
            <cite><a href="javascript:;">
                <img src="{{data.unitary.logopic}}">
                <i>已结束</i>
            </a></cite>
            <dl>
                <dt><a href="javascript:;" class="gray6">{{data.unitary.name}}</a></dt>
                <dd>已参与<em class="orange">{{data.unitary.total_num}}</em>人次</dd>
                <dd>获得者：<a href="javascript:;" class="blue" ng-if="minok">即将揭晓</a>
                    <a href="javascript:;" class="blue" ng-if="minno">{{data.unitary.user_name}}</a>
                </dd>
                <dd class="gray9">揭晓时间：<em ng-if="minok">即将揭晓</em>
                    <em ng-if="minno">{{data.unitary.endtime * 1000 | date:'yyyy-MM-dd HH:mm:ss'}}</em>
                </dd>
                <dd ng-if="minno">
                    <span href="javascript:;" class="orangeBtn w-btn-padding" ng-click="orderendCountshow()">计算详情</span>
                    <span href="javascript:;" class="orangeBtn w-btn-padding" ng-click="showMyLuckNum()">我的幸运号</span>
                </dd>

            </dl>
        </div>
        <div ng-if="minok">
            <span class="w-countdown-title">揭晓倒计时</span>
            <div class="m-detail-goods-countdown">
                <div class="w-countdown">
                    <span class="w-countdown-nums">{{orderendtimecount }}</span>
                    <span class="w-countdown-waiting" style="display:none"><b>正在计算...</b></span>
                </div>
            </div>
        </div>
        <div ng-if="minno" class="g-Record-ctlst marginB">
            <ul class="lucknum">
                <li ng-repeat="x in data.lucknum"><p>{{x.addtime | date:'yyyy-MM-dd HH:mm:ss'}}<span>1人次</span></p><b>幸运号：{{x.lucknum}}</b></li>
            </ul>
            <div class="load_more" ng-show="isloadmore">
                正在加载中...
            </div>
        </div>
    </div>
</div>


<div ng-if="showMyLuckNumsAble" class="w-ordering-lucknums">
    <div class="w-ordering-luck-cub">
        <ul>
            <li ng-repeat="luck in myLuckNumsShowList track by $index" >{{luck}}</li>
        </ul>
        <div class="clear"></div>
    </div>
    <div class="w-ordering-more" ng-click="showAllMyLuckNum()">{{showAllMyLuckNumsAble?'简略显示':'显示更多'}}</div>
</div>

<div class="orderend-count" ng-show="orderendCountisshow" ng-click="orderendCountisshow = false;">
    <div class="orderend-count-bj"></div>
    <div class="orderend-count-con">
        <div class="orderend-tit">计算方法</div>
        <p>1. 活动开始以后，当活动最后一人次被购买，此时活动就会进入开奖环节</p>
        <p>2. 幸运号是取最后一人次的购买者之前的100条全站购买记录（是指全站的所有订单）</p>
        <p>3. 将前100条记录的时间转化成数据（例如21:45:32.123转化后就是214532123）的总和</p>
        <p>4. 用算出的总和与活动的最大参与人次取余数</p>
        <p>5. 余数加上100000组成最终的幸运号码</p>
        <p>6. 当全站记录没有100条时，则有多少取多少记录来计算</p>
    </div>
</div>

<div ng-if="showMyLuckNumsAble" class="w-ordering-lucknums">
   <div class="w-ordering-luck-cub">
       <ul>
           <li ng-repeat="luck in myLuckNumsShowList track by $index" >{{luck}}</li>
       </ul>
       <div class="clear"></div>
   </div>
    <div class="w-ordering-more" ng-click="showAllMyLuckNum()">{{showAllMyLuckNumsAble?'简略显示':'显示更多'}}</div>
</div>

<shop-footer whoshow="3"></shop-footer>
<dialog isdialogshow="isdialogshow" dialogtext="{{dialogtext}}"></dialog>
<loading loadisshow="ctrlisloadshow"></loading>